﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://codegenerator.mvvm.org" elementFormDefault="qualified" targetNamespace="http://codegenerator.mvvm.org" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ViewModelGenerationOptions">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="1" name="Namespaces" type="tns:ArrayOfNamespaceInclude" />
        <xs:element minOccurs="0" maxOccurs="unbounded" name="Entity">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" maxOccurs="unbounded" name="EntityProperty">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" maxOccurs="1" name="Attributes" type="tns:ArrayOfViewModelAttributeOption" />
                  </xs:sequence>
                  <xs:attribute name="Name" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Name" type="xs:string" />
            <xs:attribute name="BaseClass" type="xs:string" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="file" type="xs:string" />
      <xs:attribute name="project" type="xs:string" />      
      <xs:attribute name="commonBaseClass" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="ArrayOfNamespaceInclude">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Namespace" nillable="true">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string" />
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ArrayOfViewModelAttributeOption">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Attribute">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="1" name="Parameters" type="tns:ArrayOfViewModelAttributeParameter" />
            <xs:element minOccurs="0" maxOccurs="1" name="NamedParameters" type="tns:ArrayOfViewModelGenerationOptionsEntityEntityPropertyAttributesAttributeNamedParametersNamedParameter" />
          </xs:sequence>
          <xs:attribute name="Class" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ArrayOfViewModelAttributeParameter">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Parameter">
        <xs:complexType>
          <xs:attribute name="Value" type="xs:string" />
          <xs:attribute name="Type" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ArrayOfViewModelGenerationOptionsEntityEntityPropertyAttributesAttributeNamedParametersNamedParameter">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="NamedParameter">
        <xs:complexType>
          <xs:attribute name="Value" type="xs:string" />
          <xs:attribute name="Type" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>